{extend name="public/common"}

{block name="style"}
<style>
    .navbar>.content-block>img{
        width:100%;height:50vw;
    }
    .list-block{
        margin:0;padding:0;
    }
    .list-block .item-content,.list-block .item-inner{
        padding:0;
    }
    .item-content{
       border-radius: 8px;box-shadow:  1px 3px 8px rgba(102,102,102,.2);min-height:105px;margin-bottom:12px;
    }
    .div1{
        position:relative;width:100%;border-bottom:1px solid #f1f1f1;padding:5px 12px;
    }
    .div1>span:nth-child(1){
        color:#df4934;font-size:16px;font-weight: bold;
    }
    .div1>span:nth-child(2){
        position:absolute;right:12px;font-size:13px;color:#999;margin-top: 3px;
    }
    .div2{
        width:100%;height:70px;border-bottom:1px solid #f1f1f1;padding:5px 12px;
    }
    .div2>div:nth-child(1){
        width:100%;font-size:14.5px;color:#333;height:42px;
    }
    .div2>div:nth-child(2){
        position:relative;width:100%;height:23px;
    }
    .div2>div:nth-child(2)>span{
        font-size:15px;color:#999;
    }
    .div2>div:nth-child(2)>img{
        width:12px;height:12px;position:absolute;top:3px;right:0;
    }
    .limits{
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
    .empty{
        color: #999999;
        font-size: 13px;
        margin: 25px auto auto auto;
        text-align: center;
    }
</style>
{/block}

{block name="body"}
<div class="views">
    <!-- Your main view -->
    <div class="view view-main">
        <div class="pages" >
            <div class="page" data-page="home">
                <div class="page-content">
                    <div class="list-block" style="padding:12px 18px;">
                        <ul>
                            <li class="item-content" style="">
                                <div class="item-inner" style="">
                                    <div class="div1" onclick=window.location.href="{:Url('Check/lists?type=1&school='.$sch.'&time='.$t)}">
                                        <span >~招生简章~</span>
                                        <span >更多</span>
                                    </div>
                                    {empty name="list1"}
                                    <div class="empty">~暂无数据~</div>
                                    {else/}
                                    {volist name="list1" id="vo1"}
                                    <div class="div2" onclick=window.location.href="{:Url('Check/detail?id='.$vo1['id'])}">
                                        <div class="limits">{$vo1.title}</div>
                                        <div>
                                            <span>{$vo1.nf} 年</span>
                                            <img src="__HOME__/images/right.png" alt="">
                                        </div>
                                    </div>
                                    {/volist}
                                    {/empty}
                                </div>
                            </li>
                            <li class="item-content" style="">
                                <div class="item-inner" style="">
                                    <div class="div1" onclick=window.location.href="{:Url('Check/lists?type=2&school='.$sch.'&time='.$t)}">
                                        <span style="color:#e56f20">~招生目录~</span>
                                        <span >更多</span>
                                    </div>
                                    {empty name="list2"}
                                    <div class="empty">~暂无数据~</div>
                                    {else/}
                                    {volist name="list2" id="vo2"}
                                    <div class="div2" onclick=window.location.href="{:Url('Check/detail?id='.$vo2['id'])}">
                                        <div class="limits">{$vo2.title}</div>
                                        <div>
                                            <span>{$vo2.nf} 年</span>
                                            <img src="__HOME__/images/right.png" alt="">
                                        </div>
                                    </div>
                                    {/volist}
                                    {/empty}
                                </div>
                            </li>
                            <li class="item-content" style="">
                                <div class="item-inner" style="">
                                    <div class="div1" onclick=window.location.href="{:Url('Check/lists?type=3&school='.$sch.'&time='.$t)}">
                                        <span style="color: #e2a214">~参考书目~</span>
                                        <span >更多</span>
                                    </div >
                                    {empty name="list3"}
                                    <div class="empty">~暂无数据~</div>
                                    {else/}
                                    {volist name="list3" id="vo3"}
                                    <div class="div2" onclick=window.location.href="{:Url('Check/detail?id='.$vo3['id'])}">
                                        <div class="limits">{$vo3.title}</div>
                                        <div>
                                            <span>{$vo3.nf} 年</span>
                                            <img src="__HOME__/images/right.png" alt="">
                                        </div>
                                    </div>
                                    {/volist}
                                    {/empty}
                                </div>
                            </li>
                            <li class="item-content" style="">
                                <div class="item-inner" style="">
                                    <div class="div1" onclick=window.location.href="{:Url('Check/lists?type=6&school='.$sch.'&time='.$t)}">
                                        <span style="color: #64a052">~复试信息~</span>
                                        <span >更多</span>
                                    </div >
                                    {empty name="list4"}
                                    <div class="empty">~暂无数据~</div>
                                    {else/}
                                    {volist name="list4" id="vo4"}
                                    <div class="div2" onclick=window.location.href="{:Url('Check/detail?id='.$vo4['id'])}">
                                        <div class="limits">{$vo4.title}</div>
                                        <div>
                                            <span>{$vo4.nf} 年</span>
                                            <img src="__HOME__/images/right.png" alt="">
                                        </div>
                                    </div>
                                    {/volist}
                                    {/empty}
                                </div>
                            </li>
                            <li class="item-content" style="">
                                <div class="item-inner" style="">
                                    <div class="div1" onclick=window.location.href="{:Url('Check/lists?type=7&school='.$sch.'&time='.$t)}">
                                        <span style="color: steelblue">~调剂信息~</span>
                                        <span >更多</span>
                                    </div >
                                    {empty name="list5"}
                                    <div class="empty">~暂无数据~</div>
                                    {else/}
                                    {volist name="list5" id="vo5"}
                                    <div class="div2" onclick=window.location.href="{:Url('Checkdetail?id='.$vo5['id'])}">
                                        <div class="limits">{$vo5.title}</div>
                                        <div>
                                            <span>{$vo5.nf} 年</span>
                                            <img src="__HOME__/images/right.png" alt="">
                                        </div>
                                    </div>
                                    {/volist}
                                    {/empty}
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{/block}

{block name="script"}
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>
    $('title' ).text('点对点教育VIP学员_私人定制');
    function onBridgeReady() {
        WeixinJSBridge.call('hideOptionMenu');
    }
    if (typeof WeixinJSBridge == "undefined") {
        if (document.addEventListener) {
            document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
        } else if (document.attachEvent) {
            document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
            document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
        }
    } else {
        onBridgeReady();
    }
</script>
{/block}